Fix the definition of the ::size-changed signal, and improve its
authorMatthias Clasen <mclasen@localhost.localdomain>
Sun, 30 Apr 2006 04:53:40 +0000 (04:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 30 Apr 2006 04:53:40 +0000 (04:53 +0000)
2006-04-30  Matthias Clasen  <mclasen@localhost.localdomain>

* gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition
of the ::size-changed signal, and improve its documentation.
(#340112, Christian Persch)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkstatusicon.c

index 764a328d25fb047f7cc77043f3cd49b85101f8fc..2b1f18061594e6b32b7e327f62778f3c9072ef52 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-30  Matthias Clasen  <mclasen@localhost.localdomain>
+
+       * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition
+       of the ::size-changed signal, and improve its documentation.
+       (#340112, Christian Persch)
+
 2006-04-29  Behdad Esfahbod  <behdad@gnome.org>
 
        * gtk/gtkwidget.c (gtk_widget_create_pango_layout)
index 764a328d25fb047f7cc77043f3cd49b85101f8fc..2b1f18061594e6b32b7e327f62778f3c9072ef52 100644 (file)
@@ -1,3 +1,9 @@
+2006-04-30  Matthias Clasen  <mclasen@localhost.localdomain>
+
+       * gtk/gtkstatusicon.c (gtk_status_icon_class_init): Fix the definition
+       of the ::size-changed signal, and improve its documentation.
+       (#340112, Christian Persch)
+
 2006-04-29  Behdad Esfahbod  <behdad@gnome.org>
 
        * gtk/gtkwidget.c (gtk_widget_create_pango_layout)
index 9a37f4fd9b5aa5e97af51825cca01eaabf4adcc5..4aa1c9a30ca342fa54e65443ac37abb57a400bcd 100755 (executable)
@@ -266,17 +266,20 @@ gtk_status_icon_class_init (GtkStatusIconClass *class)
    * Gets emitted when the size available for the image
    * changes, e.g. because the notification area got resized.
    *
+   * Return value: %TRUE if the icon was updated for the new
+   * size. Otherwise, GTK+ will scale the icon as necessary.
+   *
    * Since: 2.10
    */
   status_icon_signals [SIZE_CHANGED_SIGNAL] =
     g_signal_new (I_("size-changed"),
-                 G_TYPE_FROM_CLASS (gobject_class),
-                 G_SIGNAL_RUN_FIRST,
+                 G_TYPE_FROM_CLASS (object_class),
+                 G_SIGNAL_RUN_LAST,
                  G_STRUCT_OFFSET (GtkStatusIconClass, size_changed),
-                 NULL,
+                 g_signal_accumulator_true_handled,
                  NULL,
                  _gtk_marshal_BOOLEAN__INT,
-                 G_TYPE_NONE,
+                 G_TYPE_BOOLEAN,
                  1,
                  G_TYPE_INT);